import store from '../store'

export function mapLabel(value,type){
  let label = null
  store.getters.options[type].forEach(element => {
    if (element.value === value) {
      label = element.label
      return label
    }
  });
  return label
}

export function options(type){
  const options = JSON.parse(window.localStorage.options)
  console.log(options[type])
  return options[type]
}
